@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Variables that start with --gnome- are added by me and are assigned
 * to elements somewhere in this code. The rest of the variables are
 * built-in in Firefox, so you need to add an !important if you wanna
 * override them. */
@media (prefers-color-scheme: dark) {
	:root {
		/* Browser area before a page starts loading */
		--gnome-browser-before-load-background: #353535;

		/* Toolbars */
		--gnome-toolbar-background: #282828;	
		--gnome-toolbar-color: #ffffff;
		--gnome-toolbar-border-color: #1b1b1b;
		--gnome-inactive-toolbar-background: #353535;	
		--gnome-inactive-toolbar-border-color: #202020;

		/* Sidebar */
		--gnome-sidebar-background: #313131;
		--gnome-inactive-sidebar-background: #323232;

		/* Popups */
		--gnome-menu-background: #2f2f2f;
		--gnome-menu-border-color: #1b1b1b;
		--gnome-popover-background: #353535;
		--gnome-popover-border-color: #1b1b1b;
		--gnome-popover-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
		--gnome-popover-button-hover-background: #424242;
		--gnome-popover-separator-color: rgba(0, 0, 0, 0.1);

		/* Header bar */
		--gnome-headerbar-background: linear-gradient(to top, #262626, #2b2b2b);
		--gnome-headerbar-border-color: #070707;
		--gnome-headerbar-box-shadow: inset 0 1px rgba(238, 238, 236, 0.07);
		--gnome-inactive-headerbar-background: linear-gradient(#353535, #353535);
		--gnome-inactive-headerbar-border-color: #202020;
		--gnome-inactive-headerbar-box-shadow: inset 0 1px rgba(238, 238, 236, 0.07);

		/* Buttons */	
		--gnome-button-background: linear-gradient(to top, #323232 2px, #353535);
		--gnome-button-border-color: #1b1b1b;
		--gnome-button-border-accent-color: #070707;	
		--gnome-button-box-shadow: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px 2px rgba(0, 0, 0, 0.07);	
		--gnome-button-hover-background: linear-gradient(to top, #323232, #373737 1px);	
		--gnome-button-active-background: linear-gradient(#1e1e1e, #1e1e1e);
		--gnome-button-active-border-color: #1b1b1b;
		--gnome-button-active-border-accent-color: #000000;
		--gnome-button-active-box-shadow: inset 0 1px rgba(255, 255, 255, 0);	
		--gnome-button-disabled-background: #323232;
		--gnome-button-disabled-border-color: #202020;
		--gnome-button-disabled-box-shadow: inset 0 1px rgba(255, 255, 255, 0);
		--gnome-inactive-button-background: linear-gradient(#353535, #353535);
		--gnome-inactive-button-border-color: #202020;
		--gnome-inactive-button-box-shadow: inset 0 1px rgba(255, 255, 255, 0);
		--gnome-button-suggested-action-background: linear-gradient(to top, #155099 2px, #15539e);
		--gnome-button-suggested-action-border-color: #0f3b71;
		--gnome-button-suggested-action-border-accent-color: #092444;;
		--gnome-button-suggested-action-box-shadow: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px 2px rgba(0, 0, 0, 0.07);
		--gnome-button-suggested-action-hover-background: linear-gradient(to top, #155099, #1655a2 1px);
		--gnome-button-suggested-action-active-background: #103e75;
		--gnome-button-suggested-action-active-border-color: #0f3b71;
		--gnome-button-suggested-action-active-box-shadow: inset 0 1px rgba(255, 255, 255, 0);	
		--gnome-button-destructive-action-background: linear-gradient(to top, #ae151c 2px, #b2161d);
		--gnome-button-destructive-action-border-color: #851015;
		--gnome-button-destructive-action-border-accent-color: #570b0e;
		--gnome-button-destructive-action-box-shadow: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px 2px rgba(0, 0, 0, 0.07);
		--gnome-button-destructive-action-hover-background: linear-gradient(to top, #ae151c, #b7161d 1px);
		--gnome-button-destructive-action-active-background: #8a1116;
		--gnome-button-destructive-action-active-border-color: #851015;
		--gnome-button-destructive-action-active-box-shadow: inset 0 1px rgba(255, 255, 255, 0);

		/* Entries */
		--gnome-entry-background: linear-gradient(#2d2d2d, #2d2d2d);
		--gnome-entry-border-color: #1b1b1b;
		--gnome-entry-box-shadow: inset 0 0 0 1px rgba(21, 83, 158, 0);
		--gnome-entry-color: #ffffff;
		--gnome-inactive-entry-background: linear-gradient(#303030, #303030);
		--gnome-inactive-entry-border-color: #202020;
		--gnome-inactive-entry-box-shadow: none;
		--gnome-inactive-entry-color: #d6d6d6;
		--gnome-focused-urlbar-border-color: #15539e;
		--gnome-private-urlbar-background: #25003e;

		/* Switch */
		--gnome-switch-background: #282828;
		--gnome-switch-border-color: #1b1b1b;
		--gnome-switch-slider-background: linear-gradient(to bottom, #3c3c3c 20%, #353535 90%);
		--gnome-switch-slider-border-color: #111111;
		--gnome-switch-slider-box-shadow: inset 0 1px rgba(255, 255, 255, 0.02), 0 1px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.07);	
		--gnome-switch-active-background: #15539e;
		--gnome-switch-active-border-color: #030c17;
		--gnome-switch-active-slider-border-color: #030c17;

		/* Tabs */
		--gnome-tabbar-tab-color: rgb(141, 144, 145);
		--gnome-tabbar-tab-hover-background: #2b2b2b;
		--gnome-tabbar-tab-hover-border-bottom-color: #1b1b1b;
		--gnome-tabbar-tab-hover-color: rgb(200, 200, 200);
		--gnome-tabbar-tab-active-background: #2e2e2e;
		--gnome-tabbar-tab-active-background-contrast: #4c4c4c;
		--gnome-tabbar-tab-active-border-bottom-color: #15539e;
		--gnome-tabbar-tab-active-border-bottom-color-contrast: #448de5;
		--gnome-tabbar-tab-active-color: #ffffff;
		--gnome-tabbar-tab-active-hover-background: #313131;
		--gnome-inactive-tabbar-tab-color: rgb(141, 144, 145);
		--gnome-inactive-tabbar-tab-active-background: #353535;
		--gnome-inactive-tabbar-tab-active-border-bottom-color: #15539e;
		--gnome-inactive-tabbar-tab-active-color: rgb(141, 144, 145);  
	}
}
